package com.sina.shop.dao;

import com.sina.shop.model.Person;

import java.util.List;

public interface PersonDao {
    int deleteByPrimaryKey(Integer userId);

    int insert(Person record);

    int insertSelective(Person record);

    Person selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(Person record);

    int updateByPrimaryKey(Person record);

    List<Person> selectAll(int offset, int pageSize);
    int countAll();

    Person selectByUsername(String username);
}